#include <cstdio>

int is_leap_year(int year) {
    printf("year: %d\n", year); 
    if ((year % 400 == 0) || (year % 4 == 0 && year % 100 != 0)) {
        printf("yes\n");
        return 1;
    } else {
        printf("no\n");
        return 0;
    }
}